<template>
   <div>
     <!-- index下的路由出口 -->
     <transition enter-active-class="animate__animated animate__bounceInLeft">
    <router-view></router-view>
     </transition>
    
      <div class="bottom">
            <div >
                <img :src="require('../../assets/img/index (22).png')" alt="">
                <router-link to="/index/home" active-class="select">商城</router-link>
            </div>
            <div >
                <img :src="require('../../assets/img/index (22).png')" alt="">
                 <router-link to="/index/fenlei" active-class="select">分类</router-link>
            </div>
            <div >
                <img :src="require('../../assets/img/index (22).png')" alt="">
                 <router-link to="/index/shop" active-class="select">购物车</router-link>
               
            </div>
            <div >
                <img :src="require('../../assets/img/index (22).png')" alt="">
                 <router-link to="/index/mine" active-class="select">我</router-link>
               
            </div>

        </div>
    
   </div>
</template>

<script>
export default {

}
</script>

<style scoped>
.bottom {
  width: 100vw;
  height: 1.67rem;
  background: white;
  position: fixed;
  display: flex;
  justify-content: space-around;
  left:0;
  bottom:0;
}
.bottom img {
  width: 0.42rem;
  height: 0.44rem;
  margin-left: 2px;
  margin-top: 10px;
}
.bottom a {
  font-size: 0.2rem;
  line-height: 0.5rem;
  /* color: #c9c9c9; */
  display: block;
}
/* .bottom div:nth-of-type(1) a {
  color: red;
} */
.bottom div:nth-of-type(4) a {
  text-indent: 4px;
}
.bottom div:nth-of-type(3) img {
  margin-left: 0.2rem;
}
.select{
  color:red;
}

</style>